package domain;

/**
 * Classname: Architect
 * Package: domain
 * Description:
 * 架构师类
 * @Author Alex Liang
 * @Create 2023/12/15 17:19
 * @Version 1.0
 */

public class Architect extends Designer {
    private int stock;//股票

    public Architect() {
    }

    public Architect(int id, String name, int age, double salary, Equipment equipment, double bonus, int stock) {
        super(id, name, age, salary, equipment, bonus);
        this.stock = stock;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    @Override
    public String toString() {
        return getDetails() + "\t架构师\t" + getStatus() + "\t" + getBonus() + "\t" + getStock() + "\t" + getEquipment().getDescription();
    }
    public String getDetailsForTeam(){

        return getBasicDatilsForTeam() + "\t架构师\t" + getBonus() + "\t" + getStock();
    }
}
